package com.api.shopapi.service;

import com.api.shopapi.entity.Building;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author maochuan
 */
@Service
public interface BuildingService {

    int insert(Building building);

    int updateByBuildingCode(Building building);

    int deleteByBuildingCode(String buildingCode);

    List<Building> getListAll();

    Building getByBuildingCode(String buildingCode);

    List<Building> getListAllByInstitutionCode(String institutionCode);

    Building getByBuildingName(String name,String institutionCode);

    PageInfo<Building> getPageList(int pageIndex, int pageSize, String institutionCode, String name);


    PageInfo<Building> pageByGovCode(int pageIndex, int pageSize, String governmentCode);


}
